<!DOCTYPE html>
<html>
<head>
 <meta charset="UTF-8">
 <title> 一个简单的加法计算函数的实现</title>
 <script type="text/javascript">
	function pint()
	{	
		var text=navigator.userAgent;
		document.write(text+"&nbsp;&nbsp;&nbsp;"+navigator.appName+"<br>");
		var browser=navigator.appName
		var b_version=navigator.appVersion
		alert(b_version);
		var version=parseFloat(b_version)
		document.write("浏览器名称："+ browser)
		document.write("<br />")
		document.write("浏览器版本："+ version)

	}
 </script>
 </head>
 <body onload="pint()">

 </body>
 </html>